package com.commands;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

@SuppressWarnings("serial")
public class CreatePlannerServlet extends HttpServlet {
	public void doGet(HttpServletRequest req, HttpServletResponse resp)
	throws IOException {
		HttpSession session = req.getSession();

		session.setAttribute("num_classes", req.getParameter("num_classes"));
		session.setAttribute("system", req.getParameter("system"));
		session.setAttribute("counter", 1);

		resp.sendRedirect("/student/class.jsp");
	}
}